package com.nkym.wypan.enums;

import java.io.File;

public enum ResponseStatus {

    /**
     * 操作成功
     */
    SUCCESS("操作成功", 0),
    UPLOAD_SUCCESS("上传成功", 0),
    CHUNK_UPLOAD_SUCCESS("分片上传成功", 0),
    FAIL("服务器内部错误，请联系管理员", 50000),
    PARAM_ERROR("参数错误", 50001),
    USER_EXIST("用户名已存在", 50002),
    USER_NOT_EXIST("用户不存在", 50003),
    USER_REGISTER_FAIL("用户注册失败", 50004),

    FILENAME_EXIST("当前目录存在同名文件,请修改后重试", 50005),
    USER_VERIFY_FAIL("校验失败,请重新登录", 50006),

    USER_PASSWORD_ERROR("账号或密码错误", 50007),
    USER_NOT_LOGIN("未登录", 50008),
    FOLDER_NOT_EXIST("请求目录不存在", 50009),
    FILE_IS_NOT_FOLDER("非目录文件", 50009),
    ILLEGAL_QUERY("非法查询", 50010),
    FILE_NOT_EXIST("文件不存在", 50011),

    ILLEGAL_OPERATION("非法操作", 50012),
    SEC_UPLOAD_FAIL("秒传失败", 50013),

    USER_NOT_SPACE("用户剩余空间不足", 50014),
    UPLOAD_FAIL("上传失败", 50015),


    CHUNK_UPLOAD_FAIL("分片上传失败", 50016),
    CHUNK_MERGE_FAIL("分片合并失败", 50017),
    CREATE_SHARE_FAIL("分享链接创建失败", 50018),
    INVALID_SHARE_TIME("无效分享时间", 50019),
    CANCEL_SHARE_FAIL("取消分享失败，权限不足", 50020),
    SHARE_CANCEL("分享被取消了", 50021),

    CODE_ERROR("提取码错误", 50022),
    VERIFY_CODE_INVALID("分享链接解析错误", 50023),
    ILLEGAL_SHARE_FILE("非法分享文件", 50024),
    INVALID_SOURCE("无效资源", 50025),
    NOT_ROOM_MEMBER("不是群成员", 50026),
    ROOM_NOT_EXISTS("群聊不存在", 50027),
    CREATE_ROOM_FAIL("创建群聊失败", 50028),
    REPEAT_JOIN_ROOM("重复加入群聊", 50029),
    JOIN_ROOM_FAIL("加入群聊失败", 50030),







    ;


    private String desc;
    private Integer code;

    ResponseStatus(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
